home *** CD-ROM | disk | FTP | other *** search
/ CD World Haziran 1997 / CD World Haziran 1997.iso / Cesitlemeler / Directx 3.0 / dx3.exe / SDK / SAMPLES / DUEL / COMM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1.5 KB  |  41 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:       comm.h
  6.  *  Content:    communication routines include file
  7.  *
  8.  *
  9.  ***************************************************************************/
  10. #define IDIRECTPLAY2_OR_GREATER
  11. #include <dplay.h>
  12. #include "duel.h"
  13.  
  14. /*
  15.  * Prototypes
  16.  */
  17. HRESULT DPlayClose(void);
  18. HRESULT DPlayCreate(LPGUID lpGuid);
  19. HRESULT DPlayCreatePlayer(LPDPID lppidID, LPTSTR lpPlayerName, HANDLE hEvent, 
  20.                           LPVOID lpData, DWORD dwDataSize);
  21. HRESULT DPlayCreateSession(LPTSTR lptszSessionName);
  22. HRESULT DPlayDestroyPlayer(DPID pid);
  23. HRESULT DPlayEnumPlayers(LPGUID lpSessionGuid, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, 
  24.                          LPVOID lpContext, DWORD dwFlags);
  25. HRESULT DPlayEnumSessions(DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumCallback, 
  26.                           LPVOID lpContext, DWORD dwFlags);
  27. HRESULT DPlayGetPlayerData(DPID pid, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags);
  28. HRESULT DPlayGetSessionDesc(void);
  29. BOOL    IsDPlay(void);
  30. HRESULT DPlayOpenSession(LPGUID lpSessionGuid);
  31. HRESULT DPlayReceive(LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, 
  32.                      LPDWORD lpdwDataSize);
  33. HRESULT DPlayRelease(void);
  34. HRESULT DPlaySend(DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, 
  35.                   DWORD dwDataSize);
  36. HRESULT DPlaySetPlayerData(DPID pid, LPVOID lpData, DWORD dwSize, DWORD dwFlags);
  37.  
  38.  
  39.  
  40.  
  41.